home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Easy 2010 May
/
Mac Life Ubuntu.iso
/
casper
/
filesystem.squashfs
/
usr
/
share
/
doc
/
python-apt
/
examples
/
records.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2009-03-30
|
298 b
|
14 lines
#!/usr/bin/env python
import apt
cache = apt.Cache()
for pkg in cache:
if not pkg.candidateRecord:
continue
if "Task" in pkg.candidateRecord:
print "Pkg %s is part of '%s'" % (
pkg.name, pkg.candidateRecord["Task"].split())
#print pkg.candidateRecord